package com.itlaobing.proxy.primitive;

import java.util.logging.Logger;

public class Store implements Huawei{

    private Logger logger = Logger.getLogger(this.getClass().getName());

    private Factory factory;

    public Store(Factory factory){
        this.factory = factory;
    }
    @Override
    public CellPhone produce() {

        logger.info("商店 销售手机（进货）");
        CellPhone cp = factory.produce();
        logger.info("商店 销售手机（出售）");
        return cp;
    }
}
